/**
 * 每个页面公共的初始化内容
 */

import initNavigation from 'utils/initNavigation';
import initTrack from 'utils/track/init';

let run = false;

export default function ({ navigation = true, track = true } = {}) {
  if (run) {
    return;
  }
  run = true;
  if (navigation) {
    initNavigation();
  }
  if (track) {
    initTrack();
  }
}
